package com.itcam.advice;

import org.aspectj.lang.JoinPoint;

import org.springframework.stereotype.Component;

/**
 * Author:Cammy.Wu
 * Date:2024-04-25
 * Description:xml配置aop
 */

@Component
public class TxAdvice_xml {

    public void begin(JoinPoint joinPoint) {
        System.out.println("xml开启事务...");
    }

    public void commit(Object result) {
        System.out.println("xml事务提交...");
    }

    public void rollback(JoinPoint joinPoint, Throwable throwable) {
        System.out.println("xml事务回滚...");
    }
}
